package com.lin.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by lyq on 2017/12/5.
 */
@Component
public class SchedulerTask {

    private  int count = 0;

    @Scheduled(cron = "*/6 * * * * ?")
    private void process(){
        System.out.println("this is scheduler task runing"+(count++));
    }
}
